4D Chart v13

CT GET CHART TEXT ATTRIBUTES

Home

 
4D Chart v13
CT GET CHART TEXT ATTRIBUTES

CT GET CHART TEXT ATTRIBUTES 


 

CT GET CHART TEXT ATTRIBUTES ( area ; object ; partType ; partSpecifics ; fontID ; fontSize ; style ; color ) 
Parameter Type   Description
area  Longint in 4D Chart area
object  Longint in Object ID
partType  Integer in Type of object for which to get attributes
partSpecifics  Longint in Specific part of object for which to get attributes
fontID  Integer in Receives the font ID
fontSize  Integer in Receives the font size
style  Integer in Receives font style
color  Longint in Receives the color value

The CT GET CHART TEXT ATTRIBUTES command gets the attributes of the chart text specified by area, object, partType, and partSpecifics.

partType and partSpecifics specify the exact part of the graph for which to get the attributes. The codes for these parameters are listed in the section Parameter Codes.

fontID is the ID of the font in your system. You can get the ID number of a font using the CT Font number function.

fontSize is the size in points of the highlighted text or text object(s).

style is a composite number that results from the addition of several style numbers. The following table lists the style numbers:

ValueStyle
0Plain
1Bold
2Italic
4Underline
8Outlined (Macintosh only)
16Shadowed (Macintosh only)

color is a long integer that specifies the color of the object. You can specify a value for the color parameter by using the CT Index to color or the CT RGB to color functions.

Note: To get the attributes of text added to the document using the Text tool or the CT Draw text function, use the commands in the CT Objects theme.

Example  

This example checks to see whether the text attributes of the Category axis title have been customized, and if so, resets them.

 CT GET CHART TEXT ATTRIBUTES(Area;$ChartID;8;100;$FontID;$FontSize;
 $Style;$Color)
 If(($FontSize#10)|($FontID#CT Font number("Geneva"))|($Color#CT Index to color(10)))
    CT SET CHART TEXT ATTRIBUTES(Area;$ChartID;5;0;CT Font number("Geneva");10;1;CT Index to color(10))
 End if

 
PROPERTIES 

Product: 4D Chart
Theme: CT Chart
Number: 14590

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D Chart 1

 
SEE ALSO 

CT SET CHART TEXT ATTRIBUTES